how to remove an element from an array java